<?php
	namespace app\models\nurse;
	use yii\base\Model;
	/**
	* 
	*/
	class login extends Model
	{
		public $account;
		public $password;
		public $verify_data;
		public $ss;
		public function rules()
		{
			return [
				['account','required','message'=>'账户不能为空'],
				['password','required','message'=>'密码不能为空'],
				['verify_data','required','message'=>'验证码不能为空'],
				['verify_data','captcha','captchaAction'=>'nurse/login/captcha','message'=>'验证码不正确']
			];
		}
		public function attributeLabels()
    	{
	        return [
	            'account' => '账户名',
	            'password' => '密码',
	            'verify_data' => '验证码',
	        ];
    	}
	}
?>